transpose of a matrices in c using array